summaryrefslogtreecommitdiffstats
path: root/sw.js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-08-31 00:30:08 +0200
committersijanec <sijanecantonluka@gmail.com>2020-08-31 00:30:08 +0200
commitd8c7ab7f2153222fa1067f087dcd734f957f0d2b (patch)
tree54493696e13d713c3a81024dfcd70c13e1ef23be /sw.js
parentswž (diff)
downloadttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar
ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.gz
ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.bz2
ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.lz
ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.xz
ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.tar.zst
ttx-app-d8c7ab7f2153222fa1067f087dcd734f957f0d2b.zip
Diffstat (limited to 'sw.js')
-rw-r--r--sw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw.js b/sw.js
index 58317c0..6c211fe 100644
--- a/sw.js
+++ b/sw.js
@@ -50,7 +50,7 @@ self.addEventListener("fetch", (event) => {
&& event.request.headers.get('accept').includes('text/html'))) {
event.respondWith(fetch(event.request.url).catch(error => {
- return cacches.match(offlineUrl);
+ return caches.match(offlineUrl);
}));
} else { // zahteva je za nek resource (css/js/img), ne za stran
event.respondWith(caches.match(event.request).then((cache_res) => {